<link rel="stylesheet" type="text/css" href="assets/bootstrap-datepicker/css/datepicker.css" />
<section id="main-content">
  <section class="wrapper">
    <!--state overview end-->
    <form>
      <div class="row">
        <div class="col-lg-12">
          <section class="panel">
            <header class="panel-heading">
              资产信息
            </header>
            <div class="panel-body">
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">所属公司</label>
                <div class="col-sm-10">
                  <select name="companyCode" id="companys" certus-required class="form-control">
                    <option value="">请选择</option>
                    <option ng-repeat="d in comp" value="{{d.companyId}}" >{{d.company}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">资产名称</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" certus-required placeholder="例如：显示器、办公桌（最长20个字符）" maxlength="20" name="assetName" value="" />
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">资产类目</label>
                <div class="col-sm-10">
                  <select class="form-control" onchange="change()" certus-required id="asname" name="assetCode">
                    <option value="">请选择</option>
                    <option ng-repeat="x in data" value="{{x.ascode}}">{{x.asname}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">资产类别</label>
                <div class="col-sm-10">
                  <select class="form-control" id="asname2" certus-required name="styleId">
                    <option value="">请选择</option>
                    <option ng-repeat="x in sdata" value="{{x.styleId}}">{{x.asname2}}</option>
                  </select>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">硬件编号</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" placeholder="只有硬件需要填写硬件编号，最长50个字符" maxlength="50" name="snNo" value="" />
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">来源方式</label>
                <div class="col-sm-10">
                  <select class="form-control" name="assetSource" certus-required>
                    <option value="">请选择</option>
                    <option value="购买">购买</option>
                    <option value="继承">继承</option>
                    <option value="其他">其他</option>
                  </select>
                </div>
              </div>

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">购买金额</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" maxlength="10" certus-required name="purchasePrice" value="" />
                </div>
              </div>

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">购买时间</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" certus-required name="purchaseTime" id="purchaseTime" value="" />
                </div>
              </div>

              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">放置城市</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" certus-required name="cityLocation" maxlength="50" value="" placeholder="例如：北京" />
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">放置地址</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" certus-required name="buildingLocation" maxlength="50" value="" placeholder="例如：蓟门壹号楼" />
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">放置楼层</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" certus-required name="floorLocation" maxlength="50" value="" placeholder="例如：8号楼" />
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">放置房间</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" certus-required name="roomLocation" maxlength="50" value="" placeholder="例如：开发室" />
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">放置座位号</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" certus-required name="areaLocation" maxlength="10" value="" placeholder="例如：1502" />
                </div>
              </div>
              <!--<div class="form-group customerForm">-->
              <!--<label class="col-sm-2 control-label">数量</label>-->
              <!--<div class="col-sm-10">-->
              <!--<input type="text" onkeyup="clearNoNum(this)"  onblur="clearNoNum(this)" class="form-control"/>-->
              <!--</div>-->
              <!--</div>-->
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">上传图片</label>
                <div class="col-sm-10">
                  <input type="file" class="form-control input-file" id="pic">
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">资产描述</label>
                <div class="col-sm-10">
                  <textarea class="form-control" name="assetProfile" maxlength="120" placeholder="字数长度限制(120字以内)" certus-required></textarea>
                </div>
              </div>
              <div class="form-group customerForm">
                <label class="col-sm-2 control-label">备注说明</label>
                <div class="col-sm-10">
                  <textarea class="form-control" name="comments" maxlength="120" placeholder="字数长度限制(120字以内)"></textarea>
                </div>
              </div>
            </div>
          </section>
          <section class="panel">
            <div class="panel-body">
              <p class="default-buttons">
                <a href="javascript:void(0);" class="button-back btn btn-info" onclick="window.history.back()">返回</a>
                <a href="javascript:void(0);" class="button-next  btn btn-success submit">确认提交</a>
              </p>
            </div>
          </section>
        </div>
      </div>
    </form>
  </section>
</section>
<script type="text/javascript" src="assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script src="js/adms/assets.js"></script>
<script>
  $("#purchaseTime").datepicker({
    format: 'yyyy-mm-dd'
  });
</script>